-- GENERATED SPELL FOR [Windfury Wind Witch] --


function spell0_2963(pUnit, Event) --@Gust of Wind,Self--
pUnit:FullCastSpellOnTarget(6982,pUnit)
pUnit:RegisterEvent('Sorts_2963', 6000, 1)
end

function spell1_2963(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2963', 3000, 1)
end

function Sorts_2963(pUnit, Event)
local choix_sorts_2963 = math.random(0, 1)
if choix_sorts_2963 == 0 then
pUnit:RegisterEvent('spell0_2963', 1, 1)
end
if choix_sorts_2963 == 1 then
pUnit:RegisterEvent('spell1_2963', 1, 1)
end
end

function mob2963_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2963', math.random(1500, 3000), 1)
end

function mob2963_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2963_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2963_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2963, 1, 'mob2963_Action')
RegisterUnitEvent(2963, 2, 'mob2963_Leave')
RegisterUnitEvent(2963, 3, 'mob2963_Kill')
RegisterUnitEvent(2963, 4, 'mob2963_Die')
